package ftl.po;
import  base.*;
public class MakeEntityStep2 {
	public static void main(String[] args) throws Exception 
	{
			  
	 String files[][]=
	{	
<#list doc.entitymodel.entity as entity>
//${entity.@entity_name}  ${entity.@description}
{"entity.xml","po/entity.cs.ftl","pos/entity/po/${entity.@entity_name?cap_first}.cs","null.xml","object:${entity.@entity_name};"},
{"entity.xml","po/entityUtil.cs.ftl","pos/entity/util/t_${entity.@entity_name}.cs","null.xml","object:${entity.@entity_name};"},
{"entity.xml","po/entityDao.cs.ftl","pos/entity/Dao/partial/${entity.@entity_name?cap_first}Dao.cs","null.xml","object:${entity.@entity_name};"},
{"entity.xml","po/entity.hbm.ftl","pos/entity/xml/${entity.@entity_name?cap_first}.hbm.xml","null.xml","object:${entity.@entity_name};"}, 
 
</#list>
<#list sec.constants.constant as constant>
//{"constant.xml","po/enum_constants.java.ftl","src/${"${sec.constants.@package_name}"?replace(".","/")}/Enum${constant.@name}.java","null.xml","object:${constant.@name};"},  
</#list>
	};
	for(int i=0;i${"<"}files.length;i++)
	  AutoCode.execute(files[i]);
			  
	}
}
/*
 *
 *  xml/entity.xml 	table/t_atable.sql.ftl  Resource/sql/tables/t_WebPage.sql null.xml  object:WebPage;

 */
 